import { axios } from '@/utils/request'

export function memberList () {
  return axios({
    url: '/user/headman/member_list',
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function editMember (parameter) {
  return axios({
    url: '/user/headman/edit_member',
    method: 'post',
    data: parameter
  })
}

export function joinMember (parameter) {
  return axios({
    url: '/user/headman/join_member',
    method: 'post',
    data: parameter
  })
}
// 小组通过商品
export function getPassHead (parameter) {
  return axios({
    url: '/user/Headman/pass_head',
    method: 'post',
    data: parameter
  })
}
// 小组被翘商品
export function getLoseHead (parameter) {
  return axios({
    url: '/user/Headman/dig_head',
    method: 'post',
    data: parameter
  })
}
// 小组出单数据
export function getIssueHead (parameter) {
  return axios({
    url: '/user/Headman/issue_head',
    method: 'post',
    data: parameter
  })
}
